home *** CD-ROM | disk | FTP | other *** search
/ Agent Central Host Computer / Agent - Central Host Computer.iso / _SETUP.1 / passwords.sql < prev    next >
Text File  |  2000-05-12  |  952b  |  24 lines

  1. /* RCSVER $Id: passwords.sql,v 1.2 1999-02-24 15:05:41-06 randy CURRENT $ */
  2. /* *************************************************************************
  3. *        Copyright (C) 1999, Agent Systems, Inc. All Rights Reserved.
  4. *
  5. * Name:        passwords.sql
  6. * Date:        02/17/1999
  7. * memo:        Randy Wood
  8. * Description:    Create the passwords table. This table contains the 
  9. *        passwords for each user/subsystem combination.
  10. *        A user can have different passwords, depending on subsystem.
  11. * Changes:
  12. ************************************************************************* */
  13. CREATE TABLE passwords
  14. (
  15.     user_id        NUMBER(38)    /* ID of user */
  16.             CONSTRAINT ref1_passwords REFERENCES 
  17.             users(user_id) ON DELETE CASCADE,
  18.     subsys_id    NUMBER(38)    /* ID of subsystem */
  19.             CONSTRAINT  ref2_passwords REFERENCES 
  20.             subsystems(id) ON DELETE CASCADE,
  21.     password    VARCHAR2(10),    /* users password */
  22.     CONSTRAINT pk_passwords PRIMARY KEY (user_id, subsys_id)
  23. );
  24.